/*
 * Copyright (c) 2007-2021 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.xajtfb.bus.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.github.lvyanyang.core.BaseEntity;
import com.github.lvyanyang.core.Const;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 出租评价
 * @author 焦元义
 * @since 2021-03-02 13:29:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "出租评价")
public class WxEvaluation extends BaseEntity {
    /**
     * 评价主键
     */
    @ExcelIgnore
    @Excel(name = "评价主键", width = 20d)
    @ApiModelProperty(value = "评价主键", position = 1)
    private Long id;

    /**
     * 车号
     */
    @NotBlank(message = "车号不能为空")
    @Length(max = 50, message = "车号长度不能超过{max}个字符")
    @Excel(name = "车号", width = 20d)
    @ApiModelProperty(value = "车号", required = true, position = 2)
    private String carnumber;

    /**
     * 证书号
     */
    @Length(max = 50, message = "长度不能超过{max}个字符")
    @Excel(name = "", width = 20d)
    @ApiModelProperty(value = "", position = 3)
    private String certno;

    /**
     * 创建日期
     */

    @Excel(name = "创建日期", width = 20d, exportFormat = Const.DEFAULT_DATETIME_PATTERN)
    @ApiModelProperty(value = "创建日期", required = true, position = 4)
    private Date createdate;

    /**
     * 评价内容
     */
    @Length(max = 100, message = "评价内容长度不能超过{max}个字符")
    @Excel(name = "评价内容", width = 20d)
    @ApiModelProperty(value = "评价内容", position = 5)
    private String context;

    /**
     * 用户主键
     */
    @NotBlank(message = "用户主键不能为空")
    @Length(max = 50, message = "用户主键长度不能超过{max}个字符")
    @Excel(name = "用户主键", width = 20d)
    @ApiModelProperty(value = "用户主键", required = true, position = 6)
    private String userid;

    /**
     * 车容车貌
     */
    @NotNull(message = "车容车貌不能为空")
    @Excel(name = "车容车貌", width = 20d)
    @ApiModelProperty(value = "车容车貌", required = true, position = 7)
    private Integer crcmstar;

    /**
     * 服务礼仪
     */
    @NotNull(message = "服务礼仪不能为空")
    @Excel(name = "服务礼仪", width = 20d)
    @ApiModelProperty(value = "服务礼仪", required = true, position = 8)
    private Integer fwlystar;

    /**
     * 行车安全
     */
    @NotNull(message = "行车安全不能为空")
    @Excel(name = "行车安全", width = 20d)
    @ApiModelProperty(value = "行车安全", required = true, position = 9)
    private Integer xcaqstar;

    /**
     * 综合评价
     */
    @NotNull(message = "综合评价不能为空")
    @Excel(name = "综合评价", width = 20d)
    @ApiModelProperty(value = "综合评价", required = true, position = 10)
    private Integer zhpjstar;

}
